package com.utils;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum ResponseStatusCode {

    /**
     * 返回码
     */
    SUCCESS(0, "成功"),
    // of course not
    FAIL(500, "系统开小差"),

    ACCESS_DENIED(403, "没有权限访问"),

    PARAM_ERROR(401, "参数错误"),

    AUTH_FAIL(402, "登录鉴权失败"),

    BUSINESS_ERROR(400, "业务异常"),

    ACCESS_OPERATE_DENIED(407, "无操作权限"),

    CONCURRENT_ERROR(1004, "并发操作"),
    ;


    private int code;
    private String desc;
}